<?php
/*
 * Friends Only Feed (FOFeed)
 *
 * Copyright 2011 Andrey Esin <gmlastik@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

require_once 'config.php';
global $mood_server;

$mood_list = array(
            "aggravated" => "1",
            "angry" => "2",
            "annoyed" => "3",
            "anxious" => "4",
            "bored" => "5",
            "confused" => "6",
            "crappy" => "7",
            "cranky" => "8",
            "depressed" => "9",
            "discontent" => "10",
            "energetic" => "11",
            "enraged" => "12",
            "enthralled" => "13",
            "exhausted" => "14",
            "happy" => "15",
            "high" => "16",
            "horny" => "17",
            "hungry" => "18",
            "infuriated" => "19",
            "irate" => "20",
            "jubilant" => "21",
            "lonely" => "22",
            "moody" => "23",
            "pissed off" => "24",
            "sad" => "25",
            "satisfied" => "26",
            "sore" => "27",
            "stressed" => "28",
            "thirsty" => "29",
            "thoughtful" => "30",
            "tired" => "31",
            "touched" => "32",
            "lazy" => "33",
            "drunk" => "34",
            "ditzy" => "35",
            "mischievous" => "36",
            "morose" => "37",
            "gloomy" => "38",
            "melancholy" => "39",
            "drained" => "40",
            "excited" => "41",
            "relieved" => "42",
            "hopeful" => "43",
            "amused" => "44",
            "determined" => "45",
            "scared" => "46",
            "frustrated" => "47",
            "indescribable" => "48",
            "sleepy" => "49",
            "groggy" => "51",
            "hyper" => "52",
            "relaxed" => "53",
            "restless" => "54",
            "disappointed" => "55",
            "curious" => "56",
            "mellow" => "57",
            "peaceful" => "58",
            "bouncy" => "59",
            "nostalgic" => "60",
            "okay" => "61",
            "rejuvenated" => "62",
            "complacent" => "63",
            "content" => "64",
            "indifferent" => "65",
            "silly" => "66",
            "flirty" => "67",
            "calm" => "68",
            "refreshed" => "69",
            "optimistic" => "70",
            "pessimistic" => "71",
            "giggly" => "72",
            "pensive" => "73",
            "uncomfortable" => "74",
            "lethargic" => "75",
            "listless" => "76",
            "recumbent" => "77",
            "exanimate" => "78",
            "embarrassed" => "79",
            "envious" => "80",
            "sympathetic" => "81",
            "sick" => "82",
            "hot" => "83",
            "cold" => "84",
            "worried" => "85",
            "loved" => "86",
            "awake" => "87",
            "working" => "88",
            "productive" => "89",
            "accomplished" => "90",
            "busy" => "91",
            "blah" => "92",
            "full" => "93",
            "grumpy" => "95",
            "weird" => "96",
            "nauseated" => "97",
            "ecstatic" => "98",
            "chipper" => "99",
            "rushed" => "100",
            "contemplative" => "101",
            "nerdy" => "102",
            "geeky" => "103",
            "cynical" => "104",
            "quixotic" => "105",
            "crazy" => "106",
            "creative" => "107",
            "artistic" => "108",
            "pleased" => "109",
            "bitchy" => "110",
            "guilty" => "111",
            "irritated" => "112",
            "blank" => "113",
            "apathetic" => "114",
            "dorky" => "115",
            "impressed" => "116",
            "naughty" => "117",
            "predatory" => "118",
            "dirty" => "119",
            "giddy" => "120",
            "surprised" => "121",
            "shocked" => "122",
            "rejected" => "123",
            "numb" => "124",
            "cheerful" => "125",
            "good" => "126",
            "distressed" => "127",
            "intimidated" => "128",
            "crushed" => "129",
            "devious" => "130",
            "thankful" => "131",
            "grateful" => "132",
            "jealous" => "133",
            "nervous" => "134");

    $mood_pics = array(
            "32" => $mood_server."img/mood/classic/smile.gif",
            "33" => $mood_server."img/mood/classic/blah.gif",
            "127" => $mood_server."img/mood/classic/shock.gif",
            "21" => $mood_server."img/mood/classic/smile.gif",
            "63" => $mood_server."img/mood/classic/smile.gif",
            "71" => $mood_server."img/mood/classic/sad.gif",
            "7" => $mood_server."img/mood/classic/sad.gif",
            "26" => $mood_server."img/mood/classic/smile.gif",
            "80" => $mood_server."img/mood/classic/sad.gif",
            "119" => $mood_server."img/mood/classic/sad.gif",
            "99" => $mood_server."img/mood/classic/smile.gif",
            "18" => $mood_server."img/mood/classic/sad.gif",
            "72" => $mood_server."img/mood/classic/wink.gif",
            "125" => $mood_server."img/mood/classic/smile.gif",
            "16" => $mood_server."img/mood/classic/smile.gif",
            "44" => $mood_server."img/mood/classic/smile.gif",
            "55" => $mood_server."img/mood/classic/sad.gif",
            "74" => $mood_server."img/mood/classic/sad.gif",
            "27" => $mood_server."img/mood/classic/sad.gif",
            "84" => $mood_server."img/mood/classic/sad.gif",
            "57" => $mood_server."img/mood/classic/smile.gif",
            "95" => $mood_server."img/mood/classic/angry.gif",
            "61" => $mood_server."img/mood/classic/blah.gif",
            "20" => $mood_server."img/mood/classic/angry.gif",
            "109" => $mood_server."img/mood/classic/smile.gif",
            "92" => $mood_server."img/mood/classic/blah.gif",
            "10" => $mood_server."img/mood/classic/sad.gif",
            "31" => $mood_server."img/mood/classic/tired.gif",
            "113" => $mood_server."img/mood/classic/blah.gif",
            "35" => $mood_server."img/mood/classic/wink.gif",
            "11" => $mood_server."img/mood/classic/energetic.gif",
            "78" => $mood_server."img/mood/classic/blah.gif",
            "77" => $mood_server."img/mood/classic/smile.gif",
            "93" => $mood_server."img/mood/classic/smile.gif",
            "106" => $mood_server."img/mood/classic/wink.gif",
            "29" => $mood_server."img/mood/classic/sad.gif",
            "133" => $mood_server."img/mood/classic/sad.gif",
            "65" => $mood_server."img/mood/classic/smile.gif",
            "123" => $mood_server."img/mood/classic/sad.gif",
            "39" => $mood_server."img/mood/classic/sad.gif",
            "64" => $mood_server."img/mood/classic/smile.gif",
            "97" => $mood_server."img/mood/classic/sick.gif",
            "114" => $mood_server."img/mood/classic/blah.gif",
            "58" => $mood_server."img/mood/classic/smile.gif",
            "41" => $mood_server."img/mood/classic/smile.gif",
            "12" => $mood_server."img/mood/classic/angry.gif",
            "15" => $mood_server."img/mood/classic/smile.gif",
            "81" => $mood_server."img/mood/classic/sad.gif",
            "52" => $mood_server."img/mood/classic/energetic.gif",
            "60" => $mood_server."img/mood/classic/thinking.gif",
            "56" => $mood_server."img/mood/classic/confused.gif",
            "66" => $mood_server."img/mood/classic/wink.gif",
            "73" => $mood_server."img/mood/classic/thinking.gif",
            "101" => $mood_server."img/mood/classic/thinking.gif",
            "86" => $mood_server."img/mood/classic/smile.gif",
            "76" => $mood_server."img/mood/classic/blah.gif",
            "19" => $mood_server."img/mood/classic/angry.gif",
            "62" => $mood_server."img/mood/classic/smile.gif",
            "54" => $mood_server."img/mood/classic/sad.gif",
            "67" => $mood_server."img/mood/classic/wink.gif",
            "70" => $mood_server."img/mood/classic/smile.gif",
            "68" => $mood_server."img/mood/classic/smile.gif",
            "129" => $mood_server."img/mood/classic/sad.gif",
            "2" => $mood_server."img/mood/classic/angry.gif",
            "17" => $mood_server."img/mood/classic/smile.gif",
            "1" => $mood_server."img/mood/classic/angry.gif",
            "116" => $mood_server."img/mood/classic/smile.gif",
            "30" => $mood_server."img/mood/classic/thinking.gif",
            "100" => $mood_server."img/mood/classic/angry.gif",
            "82" => $mood_server."img/mood/classic/sick.gif",
            "110" => $mood_server."img/mood/classic/angry.gif",
            "25" => $mood_server."img/mood/classic/sad.gif",
            "128" => $mood_server."img/mood/classic/shock.gif",
            "28" => $mood_server."img/mood/classic/angry.gif",
            "120" => $mood_server."img/mood/classic/wink.gif",
            "134" => $mood_server."img/mood/classic/shock.gif",
            "75" => $mood_server."img/mood/classic/blah.gif",
            "40" => $mood_server."img/mood/classic/sad.gif",
            "83" => $mood_server."img/mood/classic/sad.gif",
            "14" => $mood_server."img/mood/classic/sad.gif",
            "69" => $mood_server."img/mood/classic/smile.gif",
            "112" => $mood_server."img/mood/classic/angry.gif",
            "59" => $mood_server."img/mood/classic/energetic.gif",
            "49" => $mood_server."img/mood/classic/tired.gif",
            "24" => $mood_server."img/mood/classic/angry.gif",
            "124" => $mood_server."img/mood/classic/sad.gif",
            "104" => $mood_server."img/mood/classic/angry.gif",
            "131" => $mood_server."img/mood/classic/smile.gif",
            "130" => $mood_server."img/mood/classic/devious.gif",
            "53" => $mood_server."img/mood/classic/smile.gif",
            "122" => $mood_server."img/mood/classic/smile.gif",
            "121" => $mood_server."img/mood/classic/smile.gif",
            "79" => $mood_server."img/mood/classic/blush.gif",
            "42" => $mood_server."img/mood/classic/smile.gif",
            "22" => $mood_server."img/mood/classic/sad.gif",
            "46" => $mood_server."img/mood/classic/shock.gif",
            "23" => $mood_server."img/mood/classic/angry.gif",
            "96" => $mood_server."img/mood/classic/wink.gif",
            "105" => $mood_server."img/mood/classic/wink.gif",
            "126" => $mood_server."img/mood/classic/smile.gif",
            "6" => $mood_server."img/mood/classic/confused.gif",
            "85" => $mood_server."img/mood/classic/sad.gif",
            "36" => $mood_server."img/mood/classic/wink.gif",
            "3" => $mood_server."img/mood/classic/angry.gif",
            "9" => $mood_server."img/mood/classic/sad.gif",
            "51" => $mood_server."img/mood/classic/tired.gif",
            "111" => $mood_server."img/mood/classic/sad.gif",
            "47" => $mood_server."img/mood/classic/angry.gif",
            "8" => $mood_server."img/mood/classic/angry.gif",
            "38" => $mood_server."img/mood/classic/sad.gif",
            "4" => $mood_server."img/mood/classic/shock.gif",
            "98" => $mood_server."img/mood/classic/smile.gif",
            "34" => $mood_server."img/mood/classic/drunk.gif",
            "37" => $mood_server."img/mood/classic/sad.gif",
            "132" => $mood_server."img/mood/classic/smile.gif",
            "117" => $mood_server."img/mood/classic/wink.gif",
            "43" => $mood_server."img/mood/classic/smile.gif",
            "5" => $mood_server."img/mood/classic/sad.gif");

function get_link_by_mood($mood) {
    global $mood_list, $mood_pics;
    if (isset($mood_pics[$mood_list[$mood]]))
            return $mood_pics[$mood_list[$mood]];
    return $mood;
}
?>
